package cn.com.dwr.service;

import cn.com.dwr.entity.AppOrder;
import cn.com.dwr.entity.AppOrderItem;
import cn.com.dwr.entity.AppSkuStock;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 邓文润
* @description 针对表【app_sku_stock】的数据库操作Service
* @createDate 2023-12-12 07:13:55
*/
public interface AppSkuStockService extends IService<AppSkuStock> {

    List<AppSkuStock> listByProductId(Long productId);

    AppSkuStock getSku(Long skuId, Long productId);

    void reduceStock(List<AppOrderItem> orderItems);

    void releaseStock(AppOrder appOrder);
}
